package com.mls.fivedistrict.server;

import com.mls.fivedistrict.common.ServiceResponse;
import com.mls.fivedistrict.pojo.SysSetting;

import java.util.Map;

/**
 * Created by lixiang on 2018/3/15.
 */
public interface SysSettingService {
    ServiceResponse addSysSetting(SysSetting sysSetting);

    ServiceResponse editSysSetting(SysSetting sysSetting);

    ServiceResponse getSysSettings();

    ServiceResponse getSysSetting(Long id);

    ServiceResponse getSysSettingList();

    ServiceResponse updateSettings(Map<String, String> params);

    /**
     * 根据key 值，在设置表里获取 设置实体
     * @param skey
     * @return 返回设置实体
     */
    SysSetting getSysSettingByKey(String skey);
}
